<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<style>
</style>
<div class="header2">
Sign up to become an<br>Affiliated Financial Authorized Dealer.
<div><br><br>
<form id="frmDealerSignUp" autocomplete="off">
	<input type="hidden" name="dealerID" value="">
<table cellspacing="0" cellpadding="0" border="0" class="mainColor" width="1%" align="center">
	<tbody>
		<TR>
			<TD align="right" nowrap style="TEXT-DECORATION: expression((document.activeElement||{}).name=='dealerName'?'underline':'')">Company Full Name:</TD>
			<TD colspan="50"><INPUT class="textbox" SIZE="50" type="text" name="dealerName" onfilterchange="return"></TD>
		</TR>
		<TR>
			<TD align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='dealerShortName'?'underline':'')">Company Short Name:</TD>
			<TD colspan="50"><INPUT class="textbox" SIZE="50" type="text" name="dealerShortName" onfilterchange="return" req></TD>
		</TR>
		<TR>
			<TD align="right" valign= "top" style="TEXT-DECORATION:expression((document.activeElement||{}).name=='adminUser'?'underline':'')">Login Name:</TD>
			<TD>
				<TABLE cellpadding="0" cellspacing="0">
					<TR><TD><INPUT class="textbox" name="adminUser" req type="text">
						<TD align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='password'?'underline':'')">Password:</TD>
						<TD><INPUT class="textbox" name="password" type="password" req>
					<TR align="right">
						<TD colspan="2" align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='password'?'underline':'')">Confirm Password:</TD>
						<TD><INPUT class="textbox" name="password" type="password" req ID="Password1">
				</TABLE>
		</TR>
		<TR>
			<TD align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='contact'?'underline':'')">Contact:</TD>
			<TD colspan="50"><INPUT class="textbox" style="WIDTH: 100%" type="text" name="contact"></TD>
		</TR>
		<tr>
			<td align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='address'?'underline':'')">Street:</td>
			<td colspan="5">
				<input class="textbox" style="WIDTH: 100%" type="text" name="address"></td>
		</tr>
		<tr>
			<td width="1%" align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='city'?'underline':'')">City:</td>
			<TD>
				<TABLE cellpadding="0" cellspacing="0"><TR>
					<td width="90%"><input class="textbox" style="WIDTH: 100%" type="text" name="city"></td>
					<td width="1%" style="TEXT-DECORATION:expression((document.activeElement||{}).name=='state'?'underline':'')"> State: </td>
					<td width="1%"><input class="textbox" size="2" type="text" name="state"></td>
					<td width="1%" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='zip'?'underline':'')"> Zip Code: </td>
					<td width="1%"><input class="textbox" size="5" type="text" name="zip"></td>
				</TR></TABLE>
		</tr>
		<tr>
			<td align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='phone'?'underline':'')">Telephone:</td>
			<td colspan="5"><input class="textbox" style="WIDTH: 50%" type="text" name="phone"></td>
		</tr>
		<tr>
			<td align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='fax'?'underline':'')">Fax:</td>
			<td colspan="5"><input class="textbox" style="WIDTH: 50%" type="text" name="fax"></td>
		</tr>
		<tr>
			<td align="right" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='email'?'underline':'')">Email:</td>
			<td colspan="5"><input class="textbox" style="WIDTH: 50%" type="text" name="email"></td>
		</tr>
		<tr>
			<td align="right" valign="top" nowrap style="TEXT-DECORATION:expression((document.activeElement||{}).name=='comment'?'underline':'')">Comment:</td>
			<td colspan="5"><textarea class="textbox" style="WIDTH:	100%" name="comment" rows="5" onkeydown="event.cancelBubble=true"></textarea></td>
		</tr>
	</tbody>
</table>
<br>
<INPUT type="button" value="Register" onclick="doSubmit()" class="textbox">
</form>
<script>
if( !document.body.onkeydown )document.body.onkeydown = doEnterKey;
setTimeout("frmDealerSignUp.dealerName.focus()",1000);
function doSubmit(){
	var els = frmDealerSignUp.elements;
	for( var i=0; i < els.length; i++ )
		if( els[i].getAttribute("req") != null && trim(getElementValue(els[i])) == "" ){
			els[i].value = trim(els[i].value);
			els[i].focus();
			return alert((getParentTD(els[i]).previousSibling||getParentTD(getParentTD(els[i]).parentElement).previousSibling).innerText+" is a required field.");
		}
	var ret = WS(CO("CreateNewCompany"),frmDealerSignUp.dealerName.value,
														frmDealerSignUp.dealerShortName.value,
														frmDealerSignUp.adminUser.value,
														frmDealerSignUp.password[0].value,
														frmDealerSignUp.contact.value,
														frmDealerSignUp.address.value,
														frmDealerSignUp.city.value,
														frmDealerSignUp.state.value,
														frmDealerSignUp.zip.value,
														frmDealerSignUp.phone.value,
														frmDealerSignUp.zip.value,
														frmDealerSignUp.email.value,
														frmDealerSignUp.comment.value);
	if( frmDealerSignUp.password[0].value != frmDealerSignUp.password[1].value )return alert("Password was not the same.\nTry again.");
	if( showSOAPError(ret) )return;
	alert(ret.value);
	location = "/manager/menu/";
}
</script>